package com.example.qgtradeconsumer.controller;

import com.example.qgcommon.util.ReturnUtil;
import com.example.qgtradeconsumer.service.LocalService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@Controller
public class TradeController {

    @Resource
    private LocalService service;

    @RequestMapping("/addTrade")
    public String addTrade(@RequestParam Map map){
        System.out.println("map:"+map+"------------------------");
         service.AddTrade( map );

        return "redirect:http://192.168.182.128:80/orderList.html";
    }
}
